﻿using Kevin.Shop.Business.Core.Components;
using Kevin.Shop.Business.Products.Components;
using Kevin.Shop.Business.Service.Entity.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RiderShop.Mobile.Common.Component;
using Kevin.Shop.Business.Core.Components.Responser;
using Kevin.Shop.Business.Core.Member;
using Kevin.Shop.Business.Service.Entity.Helper;
using RiderShop.Mobile.Common.Component;

namespace RiderShop.Mobile.Modle.MyAccount
{
    public class UserProfileModel
    {
        public ServiceResponser Result { get; set; }

        private UserBasicInfo _currentUser;

        public bool IsMale
        {
            get
            {
                return CurrentUser.Gender == 0 ? true : false;
            }
        }

        public bool IsFemale
        {
            get
            {
                return CurrentUser.Gender == 1 ? true : false;
            }
        }

        public string BirthDate
        {
            get
            {
                return CurrentUser.BirthDate.HasValue ? CurrentUser.BirthDate.Value.ToString("yyyy-MM-dd") : string.Empty;
            }
        }

        public UserBasicInfo CurrentUser
        {
            get
            {
                return _currentUser;
            }
            set { _currentUser = value; }
        }

    }
}
